package cn.cyb.server.service.impl;

import cn.cyb.server.domain.entity.SysUser;
import cn.cyb.server.mapper.SysUserMapper;
import cn.cyb.server.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yuebo
 * @date 2024/12/25
 */
@Service
public class SysUserServiceImpl implements ISysUserService {

    @Autowired
    private SysUserMapper sysUserMapper;

    @Override
    public SysUser selectUserByUserName(String userName) {
        return sysUserMapper.selectUserByUserName(userName);
    }

    @Override
    public int getCount() {
        return sysUserMapper.getCount();
    }
    @Override
    public List<SysUser> selectUserList() {
        return sysUserMapper.selectUserList();
    }
}
